package net.pimpas.util.tests;

import net.pimpas.util.EqualsHelper;

import org.apache.commons.lang.builder.HashCodeBuilder;

public final class Person {
	private String firstName;
	private String lastName;
	
	public Person() {
		
	}
	
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	@Override
	public int hashCode() {
		return new HashCodeBuilder()
			.append(this.getFirstName())
			.append(this.getLastName()).toHashCode();
	}
	@Override
	public boolean equals(Object obj) {
		return EqualsHelper.equals(this, obj);
	}
}